package com.faye.stdio.configuration;

import com.faye.stdio.service.LocationService;
import org.springframework.ai.tool.ToolCallbackProvider;
import org.springframework.ai.tool.method.MethodToolCallbackProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class McpServerConfiguration {
    @Bean
    public ToolCallbackProvider weatherTools(LocationService locationService) {
        return MethodToolCallbackProvider.builder().toolObjects(locationService).build();
    }
}
